<template>
  <div>
    <el-badge  :value="item.defaulted" type="primary" class="item">
      <el-input resize="both"
                :disabled="isFinish"
                v-model="item.indicatorsActVal"
                :placeholder="item.itemName"
                @focus="focus"
                @blur="blur"
      ></el-input>
    </el-badge>
  </div>
</template>


<script>
  export default {
    name: "MyAutoComplete",
    props: {
      item: Object,
      isFinish:{
        type:Boolean,
        default:false
      },
    },
    data(){
      return {
        defaulted:""
      }
    },
    created(){
      this.defaulted = this.item.defaulted?"参考值:" + this.item.defaulted:"";
      this.item.defaulted = ""
    },
    methods:{
      focus(){
        this.item.defaulted = this.defaulted
      },
      blur(){
        this.item.defaulted = ""
      }
    }
  }
</script>

<style lang="scss">
  .item {
    margin-top: 10px;
  }
  .el-badge__content.is-fixed{
    z-index: 99999 !important;
  }
</style>

